package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 问卷数据对象 sys_naire
 * 
 * @author ruoyi
 * @date 2022-05-20
 */
public class SysNaire extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 问卷编码 */
    private Long naireId;

    /** 问卷名称 */
    @Excel(name = "问卷名称")
    private String name;

    /** 显示顺序 */
    @Excel(name = "显示顺序")
    private Integer sort;

    /** 问卷描述 */
    @Excel(name = "问卷描述")
    private String naireDesc;

    /** 问卷类型 */
    @Excel(name = "问卷类型")
    private Long type;

    /** 问题列表 */
    @Excel(name = "问题列表")
    private String questions;

    /** 是否默认（Y是 N否） */
    @Excel(name = "是否默认", readConverterExp = "Y=是,N=否")
    private String isDefault;

    /** 问卷状态（0正常 1停用） */
    @Excel(name = "问卷状态", readConverterExp = "0=正常,1=停用")
    private String status;

    public void setNaireId(Long naireId) 
    {
        this.naireId = naireId;
    }

    public Long getNaireId() 
    {
        return naireId;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setSort(Integer sort) 
    {
        this.sort = sort;
    }

    public Integer getSort() 
    {
        return sort;
    }
    public void setNaireDesc(String naireDesc) 
    {
        this.naireDesc = naireDesc;
    }

    public String getNaireDesc() 
    {
        return naireDesc;
    }
    public void setType(Long type) 
    {
        this.type = type;
    }

    public Long getType() 
    {
        return type;
    }
    public void setQuestions(String questions) 
    {
        this.questions = questions;
    }

    public String getQuestions() 
    {
        return questions;
    }
    public void setIsDefault(String isDefault) 
    {
        this.isDefault = isDefault;
    }

    public String getIsDefault() 
    {
        return isDefault;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("naireId", getNaireId())
            .append("name", getName())
            .append("sort", getSort())
            .append("naireDesc", getNaireDesc())
            .append("type", getType())
            .append("questions", getQuestions())
            .append("isDefault", getIsDefault())
            .append("status", getStatus())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
